.class Lde/dealdoktor/app/adapter/CommentsListAdapter$2;
.super Ljava/lang/Object;
.source "CommentsListAdapter.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lde/dealdoktor/app/adapter/CommentsListAdapter;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lde/dealdoktor/app/adapter/CommentsListAdapter;

.field private final synthetic val$comment:Lde/dealdoktor/app/data/CommentDAO;


# direct methods
.method constructor <init>(Lde/dealdoktor/app/adapter/CommentsListAdapter;Lde/dealdoktor/app/data/CommentDAO;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lde/dealdoktor/app/adapter/CommentsListAdapter$2;->this$0:Lde/dealdoktor/app/adapter/CommentsListAdapter;

    iput-object p2, p0, Lde/dealdoktor/app/adapter/CommentsListAdapter$2;->val$comment:Lde/dealdoktor/app/data/CommentDAO;

    .line 138
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 7
    .parameter "v"

    .prologue
    .line 142
    iget-object v4, p0, Lde/dealdoktor/app/adapter/CommentsListAdapter$2;->this$0:Lde/dealdoktor/app/adapter/CommentsListAdapter;

    #getter for: Lde/dealdoktor/app/adapter/CommentsListAdapter;->posts:Ljava/util/ArrayList;
    invoke-static {v4}, Lde/dealdoktor/app/adapter/CommentsListAdapter;->access$1(Lde/dealdoktor/app/adapter/CommentsListAdapter;)Ljava/util/ArrayList;

    move-result-object v4

    invoke-virtual {v4}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :cond_0
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-nez v5, :cond_1

    .line 153
    :goto_0
    return-void

    .line 142
    :cond_1
    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lde/dealdoktor/app/data/PostDAO;

    .line 143
    .local v2, post:Lde/dealdoktor/app/data/PostDAO;
    iget v5, v2, Lde/dealdoktor/app/data/PostDAO;->id:I

    invoke-static {v5}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    iget-object v6, p0, Lde/dealdoktor/app/adapter/CommentsListAdapter$2;->val$comment:Lde/dealdoktor/app/data/CommentDAO;

    iget-object v6, v6, Lde/dealdoktor/app/data/CommentDAO;->postId:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_0

    .line 144
    sput-object v2, Lde/dealdoktor/app/App;->currentPost:Lde/dealdoktor/app/data/PostDAO;

    .line 145
    new-instance v0, Landroid/content/Intent;

    iget-object v4, p0, Lde/dealdoktor/app/adapter/CommentsListAdapter$2;->this$0:Lde/dealdoktor/app/adapter/CommentsListAdapter;

    #getter for: Lde/dealdoktor/app/adapter/CommentsListAdapter;->context:Lde/dealdoktor/app/activities/Comments;
    invoke-static {v4}, Lde/dealdoktor/app/adapter/CommentsListAdapter;->access$2(Lde/dealdoktor/app/adapter/CommentsListAdapter;)Lde/dealdoktor/app/activities/Comments;

    move-result-object v4

    invoke-virtual {v4}, Lde/dealdoktor/app/activities/Comments;->getParent()Landroid/app/Activity;

    move-result-object v4

    const-class v5, Lde/dealdoktor/app/activities/DetailsSingle;

    invoke-direct {v0, v4, v5}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 146
    .local v0, details:Landroid/content/Intent;
    iget-object v4, p0, Lde/dealdoktor/app/adapter/CommentsListAdapter$2;->this$0:Lde/dealdoktor/app/adapter/CommentsListAdapter;

    #getter for: Lde/dealdoktor/app/adapter/CommentsListAdapter;->context:Lde/dealdoktor/app/activities/Comments;
    invoke-static {v4}, Lde/dealdoktor/app/adapter/CommentsListAdapter;->access$2(Lde/dealdoktor/app/adapter/CommentsListAdapter;)Lde/dealdoktor/app/activities/Comments;

    move-result-object v4

    invoke-virtual {v4}, Lde/dealdoktor/app/activities/Comments;->getParent()Landroid/app/Activity;

    move-result-object v1

    check-cast v1, Lde/dealdoktor/app/activities/TabGroupActivity;

    .line 148
    .local v1, parentActivity:Lde/dealdoktor/app/activities/TabGroupActivity;
    new-instance v3, Ljava/util/Random;

    invoke-direct {v3}, Ljava/util/Random;-><init>()V

    .line 149
    .local v3, rand:Ljava/util/Random;
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "DetailsTopDeals"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const v5, 0xf4240

    invoke-virtual {v3, v5}, Ljava/util/Random;->nextInt(I)I

    move-result v5

    invoke-static {v5}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4, v0}, Lde/dealdoktor/app/activities/TabGroupActivity;->startChildActivity(Ljava/lang/String;Landroid/content/Intent;)V

    goto :goto_0
.end method
